package com.nothing.thread.lock;

import java.util.concurrent.TimeUnit;

/**
 * @author haining
 */
public class TestJoin {
    public static void main(String[] args) {
        Thread thread = new Thread(){
            @Override
            public void run() {

                System.out.println("zi start");
                try {
                    TimeUnit.SECONDS.sleep(100);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                System.out.println("zi end");
            }
        };
        thread.setDaemon(false);

        thread.start();
        System.out.println("main end");
    }
}
